package com.youths.service;

import com.github.pagehelper.PageInfo;
import com.youths.domain.Slice;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/7/5
 */
public interface SliceService {
    int addSlice(String boneDicomPath,
                 String boneImgPath,
                 String httpPath,
                 Float height,
                 Float weight,
                 Date physicalTime,
                 Integer youthId,
                 Integer state);

    int saveSlice(String boneDicomPath,
                  String boneImgPath,
                  String httpPath,
                  Date physicalTime,
                  Integer state);

    int saveSlice(Slice slice);

    int updateSliceInfo(Float height,
                        Float weight,
                        String slicingPath,
                        Integer youthId,
                        Integer slicingId,
                        Integer state);

    int updateSlicePath(String slicingPath,
                        Integer slicingId,
                        Integer state);

    int updateSliceTaskId(Integer taskId,
                          Integer slicingId,
                          Integer state);

    int updateState(Integer slicingId, Integer state);

    List<Slice> getSliceList(Integer youthId);

    Slice query(Integer slicingId);

    int uploadDicomWithSave(MultipartFile file);

    int updateTime(Integer slicingId, Date physicalTime);

    PageInfo getSliceList(Integer pageNum, Integer slicingId, String date1, String date2, String card);
}
